package com.cloud.drore.eboss.operation.service;
import com.cloud.drore.eboos.common.base.ResultMessage;
import com.cloud.drore.eboos.common.entity.operation.po.OrderSourceStatisticsPo;
import com.cloud.drore.eboos.common.entity.operation.vo.IndexLastWeekStatisticsVo;
import com.cloud.drore.eboos.common.entity.operation.vo.NextWeekTouristForecastVo;
import com.cloud.drore.eboos.common.entity.operation.vo.OrderSourceStatisticsVo;
import com.cloud.drore.eboos.common.entity.operation.vo.OrderStatisticsVo;
import com.cloud.drore.eboos.exception.BusinessException;
import com.cloud.drore.eboss.operation.entity.po.OrderStatisticsPo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/4/12 9:09 <br>
 * @Author: <a href="1451173193@qq.com">杨亮</a>
 */
@FeignClient("eboss-dealer")
public interface IFeignOperationIndex {
    @GetMapping(value = "dealerOperationIndex/getLastWeekStatistics")
    ResultMessage<IndexLastWeekStatisticsVo> getLastWeekStatistics()throws BusinessException;
    @PostMapping(value = "dealerOperationIndex/getOrderStatisticsByParams")
    ResultMessage<List<OrderStatisticsVo>> getOrderStatisticsByParams(OrderStatisticsPo po) throws BusinessException;
    @GetMapping(value = "dealerOperationIndex/getNextWeekTouristForecast")
    ResultMessage<List<NextWeekTouristForecastVo>> getNextWeekTouristForecast()throws BusinessException;
    @PostMapping(value = "dealerOperationIndex/getOrderSourceStatisticsByParams")
    ResultMessage<OrderSourceStatisticsVo> getOrderSourceStatisticsByParams(OrderSourceStatisticsPo po)throws BusinessException;
}
